﻿using LogManager.Base;

namespace LogManager.Windows.Events
{
    public class WebBaseErrorEvent : Event, IErrorInfo
    {
        #region IErrorInfo Members
        [Filterable]
        public string ExceptionType
        {
            get { return (string)Properties.GetValueOrDefault("ExceptionType", null); }
            set { Properties["ExceptionType"] = value; }
        }
        [Filterable]
        public string ExceptionDetail
        {
            get { return (string)Properties.GetValueOrDefault("ExceptionDetail", null); }
            set { Properties["ExceptionDetail"] = value; }
        }
        [Filterable]
        public string StackTraceFileName
        {
            get { return (string)Properties.GetValueOrDefault("StackTraceFileName", null); }
            set { Properties["StackTraceFileName"] = value; }
        }
        [Filterable]
        public string StackTraceFileLineNumber
        {
            get { return (string)Properties.GetValueOrDefault("StackTraceFileLineNumber", null); }
            set { Properties["StackTraceFileLineNumber"] = value; }
        }

        #endregion
    }
}